package com.etc.entity;

import java.io.Serializable;

/**
 * fx_songlist
 * @author 
 */
public class FxSonglist implements Serializable {
    private Integer id;

    private Integer playlistid;

    private Integer musicid;

    private Integer status;

    private static final long serialVersionUID = 1L;

    public FxSonglist() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPlaylistid() {
        return playlistid;
    }

    public void setPlaylistid(Integer playlistid) {
        this.playlistid = playlistid;
    }

    public Integer getMusicid() {
        return musicid;
    }

    public void setMusicid(Integer musicid) {
        this.musicid = musicid;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        FxSonglist other = (FxSonglist) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPlaylistid() == null ? other.getPlaylistid() == null : this.getPlaylistid().equals(other.getPlaylistid()))
            && (this.getMusicid() == null ? other.getMusicid() == null : this.getMusicid().equals(other.getMusicid()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPlaylistid() == null) ? 0 : getPlaylistid().hashCode());
        result = prime * result + ((getMusicid() == null) ? 0 : getMusicid().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", playlistid=").append(playlistid);
        sb.append(", musicid=").append(musicid);
        sb.append(", status=").append(status);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}